package com.hk.core.authentication.api;

/**
 * @author Kevin
 * @date 2019-4-9 13:44
 */
public record UnsupportedSecurityContext() implements SecurityContext {

    @Override
    public <T extends UserPrincipal> T getPrincipalByType(Class<T> type) {
        throw new UnsupportedOperationException("UnsupportedOperation");
    }

    @Override
    public boolean isAuthenticated() {
        return false;
    }
}
